#ifndef __LCD_SPI_H
#define __LCD_SPI_H

#define SPIy          SPI1
#define SPIy_CLK      RCC_APB2_PERIPH_SPI1
#define SPIy_GPIO     GPIOA
#define SPIy_GPIO_CLK RCC_APB2_PERIPH_GPIOA
#define SPIy_PIN_SCK  GPIO_PIN_5
#define SPIy_PIN_MISO GPIO_PIN_6
#define SPIy_PIN_MOSI GPIO_PIN_7

#define LCD_DC_Port   GPIOB
#define LCD_DC_Pin    GPIO_PIN_0

#define LCD_LEDA_Port   GPIOA
#define LCD_LEDA_Pin    GPIO_PIN_3

#define LCD_RST_Port    GPIOB
#define LCD_RST_Pin     GPIO_PIN_1

void lcd_spi_init(void);

#endif
